package com.gdit.revenue.controller;

import com.gdit.revenue.base.result.Results;
import com.gdit.revenue.model.Role;
import com.gdit.revenue.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
@RequestMapping("/role")
public class RoleController {

    @Autowired
    RoleService roleServiceImpl;

    @RequestMapping("/rolelist")
    @ResponseBody
    public Results rolelist(){
        return roleServiceImpl.getAllRoles();
    }

}
